#include "sys.h"





static u16 ntc[] = 
{9533,9266,9006,8754,8510,8274,8044,7822,7607,7398,7196,
//-20 -19.5                                             -15                   
	6999,6809,6624,6445,6271,6102,5939,5780,5626,5477,5332,
//-14.5                                             -9.5
  5191,5054,4922,4793,4668,4547,4429,4314,4203,4095,3990,
//-9                                                -4
  3888,3789,3692,3600,3508,3420,3334,3250,3169,3090,3014,
//-3.5                                0              1.5
  2939,2866,2800,2727,2661,2596,2533,2471,2411,2353,2297,
//2                                                   7
  2242,2188,2136,2085,2036,1987,1941,1895,1851,1807,1765,
//7.5                                                12.5
  1724,1684,1645,1607,1570,1525,1499,1465,1432,1399,1368,
//13                                                 18	
	1337,1307,1278,1249,1221,1194,1168,1142,1117,1092,1068,
//18.5                                               23.5
  1045,1022,1000, 978, 957, 936, 916, 897, 878, 859, 841,
//24                                                 29
   822, 805, 788, 772, 756, 740, 724, 709, 695, 680, 666,
//29.5                                               34.5
   653, 639, 626, 613, 601, 589, 577, 565, 554, 543, 532,
//35                                                 40 
   521, 511, 501, 491, 481, 471, 462, 453, 444, 436, 427,
//40.5                                               45.5
   419, 411, 403, 395, 387, 380, 373, 366, 359, 352, 345,
// 46                                                51
   339, 332, 326, 320, 314, 308, 303, 297, 291, 286, 281,
//51.5                                               56.5
   276, 271, 266, 261, 256, 252, 247, 243, 238, 234, 230,
// 57                                                 62
   226, 222, 218, 214, 210, 206, 203, 199, 196, 192, 189,
	//62.5                                             67.5
 	 186, 183, 179, 176, 173, 170, 167, 165, 162, 159, 156,
	//68                                                73
	 154, 151, 149, 146, 144, 141, 139, 137, 134, 132, 130,
//73.5                                               78.5
   128, 126, 124, 122, 120, 118, 116, 114, 112, 111, 109,
	//79                                               84
	 107, 105, 104, 102, 100,  99,  97,  96,  94,  93,  91,
  //84.5                                              89.5 
    90,  89,  87,  86,  85,  83,  82,  81,  79,  78,  77,
  //90                                                95
    76,  75,  74,  73,  71,  70,  69,  68,  67,  66	
  //95.5                                        100




};

static u16 ntc1[]={
  17212, 16159, 15178, 14268, 13428, 12653, 11941, 11287, 10688, 10139, 
//-30                                                             -21     
   9636,  9007,  8459,  7974,  7539,  7143,  6779,  6440,  6121,  5818,
	//-20                                                            -11
   5529,  5251,  4984,  4725,  4475,  4233,  4000,  3789,  3596,  3417,
  //-10                                                            -1
   3251,  3096,  2950,  2812,  2681,  2557,  2438,  2325,  2217,  2113,
  //0                                                               9
   2014,  1916,  1826,  1743,	 1666,  1592,  1522,  1454,  1389,  1326,
	//10                                                              19
	 1265,  1206,  1151,  1097,  1047,  1000,   956,   916,   880,   848,
	//20                                                              29
	  819,   787,   756,   725,   695,   665,   637,   609,   582,   557,
	//30                                                              39
	  533,   510,   489,   470,   452,   437,   419,   403,   387,   373,
	//40                                                              49
	  359,   346,   333,   321,   309,   298,   287,   276,   266,   256,
	//50                                                              59
	  246,   237,   229,   220,   212,   205,   197,   190,   183,   177,
	//60                                                              69
	  171,   165,   159,   154,   148,   144,   139,   135,   130,   126,
	//70                                                              79
	  122,   119,   115,   111,   108,   104,   101,    98,    95,    91,
	//80                                                              89
	   88,    85,    83,    80,    78,    75,    73,    71,    69,    67,
  //90                                                              99 




};
#define SIZE sizeof(ntc)	
//#define SIZE1 sizeof(ntc1)	







u16 GetTempreture(u16 ntc);
u16 get_ntctemperature(u16 ntcx);







